//导入request.js请求工具
import request from '@/utils/request.js'

//提供调用全部列表信息的函数
export const searchRisk = ()=>{
    return  request.get('/secondrisk/getAll')
}
//添加风险点
export const riskAddService = (riskData)=>{
    return request.post('/secondrisk/add',riskData);

}
//编辑
export const riskUpdateService = (riskData)=>{
    return request.post('/secondrisk/update',riskData);

}
//删除
export const riskDelService = (riskData)=>{
    return request.post('/secondrisk/delete',riskData);

}